<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#xx{
				width:350px ;
				height:200px;
			}
			.div1{
				width:350px ;
				height:200px;
				/*position:absolute;
				left: 0px;
				top: 0px;*/
			}
			#img1{
				width:700px ;
				height:400px;
				/*position:absolute;*/
				
			}
		</style>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		//作业
		//1、实现将鼠标移动到指定的图片位置时，出现大图片预览
			
			$(function(){
				
				$("#xx").mouseover(function(e){
					$c = $("#xx").clone();
					$c.attr("id","img1");
					$("#div2").append($c);
					//$("#img1").css("left",e.clientX+1);
					//$("#img1").css("top",e.clientY+1);
				})
				$("#xx").mouseout(function(){
					$("#div2").empty();
				})
			
				
			})
				function show($xx){
				
				}
			
		</script>
		
	</head>
	<body>
		<div class="div1">
		<img id ="xx" src="img/xx.jpg" />
		</div>
		<div  id="div2">
		</div>
		
		
	</body>
</html>
